package org.dromara.exam.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Builder;
import lombok.Data;
import org.dromara.exam.domain.dto.TemplateSchema;
import org.dromara.exam.domain.entity.ExamTemplate;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;


/**
 * 题目视图对象 exam_question
 *
 * @author xiyin321
 * @date 2024-04-11
 */

@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = ExamTemplate.class)
public class ExamTemplateVo implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 题目ID
     */
    @ExcelProperty(value = "题目ID")
    private Long templateId;

    /**
     * 题库ID
     */
    private Long repoId;

    /**
     * 题目标题
     */
    @ExcelProperty(value = "题目标题")
    private String templateName;

    /**
     * 题目类型
     */
    @ExcelProperty(value = "题目类型")
    private TemplateSchema.QuestionType questionType;

    /**
     * 标签
     */
    @ExcelProperty(value = "标签")
    private String[] tag;

    /**
     * 显示顺序
     */
    @ExcelProperty(value = "显示顺序")
    private Long orderNum;

    /**
     * 题目模板
     */
    @ExcelProperty(value = "题目选项")
    private TemplateSchema template;

    /**
     * 答案
     */
    @ExcelProperty(value = "答案")
    private String answer;

    /**
     * 分值
     */
    @ExcelProperty(value = "分值")
    private Double score;

    /**
     * 创建时间
     */
    private Date createTime;

//    private ExamRepoVo repo;

}
